{% extends "base.html" %}

{% block content %}
<div class="auth-container">
    <div class="auth-form">
        <h2>登录</h2>
        <form method="post">
            {% csrf_token %}
            {{ form.as_p }}
            <button type="submit" class="btn btn-primary">登录</button>
        </form>
        <p>还没有账号？<a href="{% url 'users:register' %}">立即注册</a></p>
    </div>
</div>
{% endblock %}